package com.liang.service.impl;

import com.liang.dao.UserCoordinationMapper2;
import com.liang.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class UserCoordinationServiceImpl2 implements UserCoordinationMapper2 {
    static SqlSession sqlSessionAuto =null;


    public int insertUserCoordinationMapper(int usrId1, int userId2, double distance) {
        sqlSessionAuto=MybatisUtils.getSqlSessionAuto();
        UserCoordinationMapper2 mapper = sqlSessionAuto.getMapper(UserCoordinationMapper2.class);
        mapper.insertUserCoordinationMapper(usrId1,userId2,distance);
        sqlSessionAuto.close();
        return 0;
    }
}
